"""
@Author: 霍格沃兹测试开发学社-西西
@Desc: 更多测试开发技术探讨，请访问：https://ceshiren.com/t/topic/15860
"""
class Human:
    def __init__(self,name,age,gender):
        self.name = name
        self.age = age
        self.gender = gender

    def live(self):
        print("生活在地球上")
        return "live的返回值"


class Student(Human):
    def __init__(self, name, age, gender, card_id):
        # super表示 父类/超类
        super().__init__(name, age, gender)
        # 新加属性
        self.card_id = card_id

    def live(self):
        print("生活在宿舍里")

    def study(self):
        print("好好学习")


class Worker(Human):
    def live(self):
        print("生活出租屋里")

stu = Student(name="小明",age=18,gender="male",card_id="00001")
stu.study()
print(stu.live())